﻿@{
    ViewBag.Title = "安全教育记录明细";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section scripts{
        <script src="~/Areas/Senv/ViewModels/Senv.com.js"></script>
        <script src="~/Areas/Senv/ViewModels/Senv.viewModel.edit.js"></script>
        <script type="text/javascript">
            using(['numberbox', 'lookup']);
            var  viewModel =function(data){
                Senv.viewModel.edit.apply(this, arguments);//继承Senv.viewModel.edit
            };
            var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
            ko.bindingViewModel(new viewModel(data));
        </script>
}
<style type = "text/css">
    .z-area-txt {margin:0px;padding:0 3px; width:122px;line-height: 20px;height: 80px;border: 1px solid #A4BED4;background:white;font-size: 12px;display: inline-block;}
</style>
    <div class="z-toolbar">
        <a id="a_save" href="#" plain="true" class="easyui-linkbutton" icon="icon-save" data-bind="click:saveClick,linkbuttonDisable:readonly" title="保存">保存</a>
        <a id="a_undo" href="#" plain="true" class="easyui-linkbutton" icon="icon-undo" data-bind="click:rejectClick,linkbuttonDisable:readonly" title="撤消">撤消</a>
        <a id="a_audit" href="#" plain="true" class="easyui-linkbutton" icon="icon-user-accept" data-bind="click:auditClick,easyuiLinkbutton:approveButton" title="审核">审核</a>
        <a id="a_printer" href="#" plain="true" class="easyui-linkbutton" icon="icon-printer" title="打印" data-bind="click:printClick">打印</a>
        <div class="datagrid-btn-separator"></div>
        <a id="a_first" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_first" data-bind="click:firstClick,linkbuttonEnable:scrollKeys.firstEnable" title="第一条"></a> 
        <a id="a_previous" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_previous" data-bind="click:previousClick,linkbuttonEnable:scrollKeys.previousEnable" title="上一条"></a> 
        <a id="a_next" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_next" data-bind="click:nextClick,linkbuttonEnable:scrollKeys.nextEnable" title="下一条"></a> 
        <a id="a_last" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_last" data-bind="click:lastClick,linkbuttonEnable:scrollKeys.lastEnable" title="最后一条"></a> 
    </div>

    <div id="master" class="container_12" data-bind="inputwidth:1">
        <div class="grid_8 lbl" style="text-align:center;font-size:x-large;color:Black;font-family:黑体;">安全教育记录明细</div>
        <div class="clear"></div> 

        <div class="grid_1 lbl required">单据编号</div>
        <div class="grid_3 val"><input type="text" data-bind="value:form.Aqjyjl_BillNo,readOnly:true" class="z-txt readonly"/></div>
        <div class="grid_1 lbl required">教育类别 </div>
        <div class="grid_3 val"><input type="text" id = "Aqjyjl_Jylbbh" data-bind="lookupValue:form.Aqjyjl_Jylbbh,lookupReadOnly:readonly" class="easyui-combobox z-txt easyui-lookup" required="true" data-options="lookupType:'organize',parentField:'pid'"/></div>
      
        <div class="clear"></div>
         <div class="grid_1 lbl required">教育成绩</div>
        <div class="grid_3 val"><input id = "Aqjyjl_Cj" data-bind="numberboxValue:form.Aqjyjl_Cj,readOnly:readonly"  data-options="min:10,max:100,precision:2" class="easyui-numberbox z-txt readonly" precision="2"/></div>
        <div class="clear"></div>

        <div class="grid_1 lbl">教育人名称</div>
        <div class="grid_3 val"><input type="text" id = "Aqjyjl_Jyrybh" data-bind="lookupValue:form.Aqjyjl_Jyrybh,lookupReadOnly:readonly" class="easyui-combobox z-txt easyui-lookup" required="true" data-options="lookupType:'sysuser'"/></div>
        <div class="grid_1 lbl">受教育日期</div>
        <div class="grid_3 val"><input type="text" data-bind="dateboxValue:form.Aqjyjl_Sjyrq,dateboxReadOnly:readonly" class="easyui-datebox z-txt" /></div>
        
        <div class="clear"></div>
        <div class="grid_1 lbl">教育内容</div>
        <div class="grid_7 val"><textarea  data-bind="value:form.Aqjyjl_Jynr,readOnly:readonly"  style="width:99%" class="z-area-txt" > </textarea></div>
        <div class="clear"></div>
        <div class="grid_1 lbl">受教育原因</div>
        <div class="grid_7 val"><textarea  data-bind="value:form.Aqjyjl_Jyyy,readOnly:readonly"  style="width:99%" class="z-area-txt" > </textarea></div>
        <div class="clear"></div> 

        <div class="grid_1 lbl">备注说明</div>
        <div class="grid_7 val"><textarea  data-bind="value:form.Aqjyjl_Remark,readOnly:readonly"  style="width:99%" class="z-area-txt" > </textarea></div>
        <div class="clear"></div> 

        <div class="grid_1 lbl">审批状态</div>
        <div class="grid_3 val"><input type="text" id="ApproveState" data-bind="value:form.ApproveState,readOnly:true" class="z-txt readonly"/></div>
        <div class="grid_1 lbl">审批意见</div>
        <div class="grid_3 val"><input type="text" id="ApproveRemark" data-bind="value:form.ApproveRemark,readOnly:true"  class="z-txt readonly"/></div>
        <div class="clear"></div>
        <div class="grid_1 lbl">审批人 </div>
        <div class="grid_3 val"><input type="text" id="ApprovePerson"data-bind="value:form.ApprovePerson,readOnly:true" class="z-txt readonly"/></div>
        <div class="grid_1 lbl">审批日期</div>
        <div class="grid_3 val"><input type="text" id="ApproveDate" data-bind="dateboxValue:form.ApproveDate,dateboxReadOnly:true"  class="z-txt easyui-datebox readonly"/></div>

        <div class="clear"></div>
        <div class="grid_1 lbl">编制日期</div>
        <div class="grid_3 val"><input type="text" id="CreateDate" data-bind="dateboxValue:form.CreateDate,dateboxReadOnly:true" class="z-txt easyui-datebox readonly" /></div>
        <div class="grid_1 lbl">编制人</div>
        <div class="grid_3 val "><input type="text" id="CreatePerson" data-bind="value:form.CreatePerson,readOnly:true" class="z-txt readonly" /></div>
                
        <div class="clear"></div>
        <div class="grid_1 lbl">修改日期</div>
        <div class="grid_3 val"><input type="text" id="UpdateDate" data-bind="dateboxValue:form.UpdateDate,dateboxReadOnly:true" class="z-txt easyui-datebox readonly" /></div>
        <div class="grid_1 lbl">修改人</div>
        <div class="grid_3 val "><input type="text" id="UpdatePerson" data-bind="value:form.UpdatePerson,readOnly:true" class="z-txt readonly" /></div>
 
  </div>


